package com.example.gyj.util;

import java.util.UUID;

/**
 *
 * @author Gao
 * @date 2018/10/21
 */
public class UUIDUtil {

    public static String uuid() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }

    public static String uuid1() {
        return UUID.randomUUID().toString();
    }

    public static void main(String[] args) {
        System.out.println(uuid());
        System.out.println(uuid1());
    }
}
